package org.uim.cricket.storage.raise;

import org.uim.cricket.storage.queries.CountryQueryGenerator;
import org.uim.cricket.storage.raise.fetch.OrderedFetchList;

public class InsertNewCountry extends InsertNewEntity {

	private String team = null;
	private String continent;
	private String abbr;
	private boolean associated;
	
	public InsertNewCountry(OrderedFetchList rfetcher, String name, String continent, String abbr, boolean associated) {
		super(rfetcher); 
		
		this.team = name;
		this.continent = continent;
		this.abbr = abbr;
		this.associated = associated;
	}
	
	public String raise() throws Exception {
		return new CountryQueryGenerator(team, continent, abbr, associated).generateQuery();
	}
	
	public void setTeam(String team) {
		this.team = team;
	}
	
	public String getTeam() {
		return team;
	}
	
	public void setContinent(String continent) {
		this.continent = continent;
	}
	
	public void setAssociated(boolean associated) {
		this.associated = associated;
	}
	
	public void setAbbr(String abbr) {
		this.abbr = abbr;
	}
	
	public boolean isAssociated() {
		return associated;
	}
	
	public String getContinent() {
		return continent;
	}
	
	public String getAbbr() {
		return abbr;
	}
	
	
}
